/**
 * 
 */
package com.jrh.web.member;

import com.jrh.domain.entity.User;

/**
 * @author shengli.caosl 2012-3-6 下午1:17:16
 */
public class User4SessionInfo {

    // 用户信息
    private User um;
    // 上次登录时间，毫秒
    private Long      lt;

    public User4SessionInfo(){
        lt = System.currentTimeMillis();
    }

    /**
     * @return the um
     */
    public User getUm() {
        return um;
    }

    /**
     * @param um the um to set
     */
    public void setUm(User um) {
        this.um = um;
    }

    /**
     * @return the lt
     */
    public Long getLt() {
        return lt;
    }

    /**
     * @param lt the lt to set
     */
    public void setLt(Long lt) {
        this.lt = lt;
    }

    public boolean isEffective() {
        if (um == null) {
            return false;
        }
        return true;
    }
}
